Carbon


FillCRoundRect

Header: Quickdraw.h Carbon status: Supported

Fills a rounded rectangle with the given pixel pattern, using the patCopy pattern mode.

void FillCRoundRect (
    const Rect *r, 
    SInt16 ovalWidth, 
    SInt16 ovalHeight, 
    PixPatHandle pp
);
r

The rectangle that defines the rounded rectangle’s boundaries.

ovalWidth

The width of the oval defining the rounded corner.

ovalHeight

The height of the oval defining the rounded corner.

pp

A handle to the PixPat structure for the pixel pattern to be used for the fill.

DISCUSSION

Use the ovalWidth and ovalHeight parameters to specify the diameters of curvature for the corners. This function ignores the pnPat, pnMode, and bkPat fields of the current graphics port and leaves the pen location unchanged.

SPECIAL CONSIDERATIONS

The FillCRoundRect function may move or purge memory blocks in the application heap; do not call this function at interrupt time.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)